home *** CD-ROM | disk | FTP | other *** search
- /* Screen Editor: Non-user defined globals
- *
- * Module: ed0/ccc
- * Date: November 26, 1983
- */
-
- /* Define misc. constants */
- #define EOS 0 /* code sometimes assumes \0 */
- #define OK 0
- #define ERR 0xFFFE /* error. must be <0 */
- #define EOF 0xFFFF /* end of file. must be <0 */
- #define YES 1 /* must be nonzero */
- #define NO 0
- #define ON 0xFFFF
- #define OFF 0
- #define CR 13 /* carriage return */
- #define LF 10 /* line feed */
- #define TAB 9 /* tab character */
- #define HUGE 32000 /* practical infinity */
- #define FILE char
- #define NULL 0
- #define FOREVER for(;;) /* tighter code than while(1) */
-
- /* add these #defines to ED0/CCC (cursor() is not used)
- * to tell ED8 what the cursor-control characters are
- * (they could be put in ED8 since they are not used in
- * any other module, but if all machine-dependent stuff
- * is in one place the program is easier to port.)
- */
-
- #define HOME 28 /* home the cursor */
- #define CURDN 0x1A /* move cursor down one line*/
- #define CURRT 0x19 /* move cursor one char to right */
- #define RTA 9 /* right arrow, same as TAB */
- #define SHRA 0x94 /* shifted right arrow */
- #define CUROFF 15 /* turn cursor OFF */
- #define CURON 14 /* turn it back ON */
-
- /* Define constants describing a text line */
-
- #define MAXLEN 200
- /*MAXLEN is max characters per line */
- #define MAXLEN1 201
- /*MAXLEN + 1 */
- #define MAXLEN2 202
- /*MAXLEN + 2 */
-
- /* Define length and width of screen and printer */
- #define SCRNW 64
- /* width of video screen */
- #define SCRNW1 63
- #define SCRNL 16
- /* length of video screen */
- #define SCRNL1 15
- #define SCRNL2 14
- #define LISTW 85
- /* width of printer */
-
- /* Define operating system constants */
- #define SYSFNMAX 15
- /* max length of LDOS file descriptor */
-
- #include ed1a
-
- /* end module ed0/ccc */
-
-